/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pb138.videodes.api.base;

import org.exist.xmldb.XQueryService;
import org.xmldb.api.base.Collection;
import org.xmldb.api.base.XMLDBException;

/**
 *This interface provide a functionality for basic XML database operations such as open or close connection
 * It should be compatible with any XML database using XMLDB api
 * @author pseudo
 */
public interface XMLDBDriver {

    /**
     * close connection with database
     */
    void close();

    Collection getCollection(String name) throws XMLDBException;
    
    /**
     * this method provide XQuerySerivce instance  
     * @return instance of XQueryService 
     */
    XQueryService getService();

    /**
     * open connection with database
     */
    void open();
    
}
